<?php

class Avatar_Installer extends Engine_Package_Installer_Module {
	function onInstall() {
		$db = $this->getDb ();
		$db->update ( 'engine4_core_content', array ('name' => 'avatar.profile-photo' ), array ('name = ?' => 'user.profile-photo' ) );
		parent::onInstall ();
	}
	
	public function onEnable() {
		$db = $this->getDb ();
		
		$db->update ( 'engine4_core_content', array ('name' => 'avatar.profile-photo' ), array ('name = ?' => 'user.profile-photo' ) );
		
		parent::onEnable ();
	}
	
	public function onDisable() {
		$db = $this->getDb ();
		
		$db->update ( 'engine4_core_content', array ('name' => 'user.profile-photo' ), array ('name = ?' => 'avatar.profile-photo' ) );
		
		parent::onDisable ();
	}

}
?>